package com.ztp.lib.server;

import org.apache.ftpserver.ftplet.Authentication;
import org.apache.ftpserver.ftplet.AuthenticationFailedException;
import org.apache.ftpserver.ftplet.FtpException;
import org.apache.ftpserver.ftplet.User;
import org.apache.ftpserver.ftplet.UserManager;
import org.apache.ftpserver.usermanager.UserManagerFactory;
import org.apache.ftpserver.usermanager.impl.DbUserManager;

public class JDBCUserManageFactory implements UserManagerFactory{

	@Override
	public UserManager createUserManager() {
		
		//DbUserManager dbUserManager = new DbUserManager(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
		
		UserManager manager = new UserManager() {
			
			@Override
			public void save(User arg0) throws FtpException {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public boolean isAdmin(String arg0) throws FtpException {
				// TODO Auto-generated method stub
				return false;
			}
			
			@Override
			public User getUserByName(String arg0) throws FtpException {
				// TODO Auto-generated method stub
				return null;
			}
			
			@Override
			public String[] getAllUserNames() throws FtpException {
				// TODO Auto-generated method stub
				return null;
			}
			
			@Override
			public String getAdminName() throws FtpException {
				// TODO Auto-generated method stub
				return null;
			}
			
			@Override
			public boolean doesExist(String arg0) throws FtpException {
				// TODO Auto-generated method stub
				return false;
			}
			
			@Override
			public void delete(String arg0) throws FtpException {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public User authenticate(Authentication arg0)
					throws AuthenticationFailedException {
				// TODO Auto-generated method stub
				return null;
			}
		};
		return null;
	}

	
	
}
